<?php
/**
 * author: Administrator
 * Createtime: 2015/12/114:12
 * description: 
 */

namespace App\Api\V1\Controllers;


use App\User;

class UserTransformer extends \League\Fractal\TransformerAbstract
{
    public function transform(User $user)
    {
        return [
            'name' => $user->name,
            'email' => $user->email,
            'create' => $user->created_at
        ];
    }
}